package com.reworkssm.mybatisdemo.service;

import com.reworkssm.mybatisdemo.domain.*;

import com.reworkssm.mybatisdemo.domain.ServerResponse;

import java.util.List;


public interface ICategoryService {

    ServerResponse addCategory(String categoryName, Integer parentId);

    ServerResponse updateCategoryName(String categoryName, Integer categoryId);

    ServerResponse<List<Category>> getCategoryChildInfoByCategoryId(Integer categoryId);

    ServerResponse<List<Integer>> getCateforyAndDescendantIdByCategoryId(Integer categoryId);

}
